﻿@{
    Layout = null;
}
<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>后台登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=1, initial-scale=1,target-densitydpi=low-dpi">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon">
    <link href="static/css/xadmin.css" rel="stylesheet">
    <link href="static/css/font.css" rel="stylesheet">
    <link href="static/css/default.css" rel="stylesheet">
    <style>
        .login .message {
            background-color: #337ab7 !important;
        }

        .login input[type="submit"] {
            background-color: #337ab7 !important;
        }

        .container {
            background-color: rgba(0, 0, 0, 0) !important;
        }

    </style>
</head>

<body class="login-bg">
<div class="login">
    <div class="message">管理登录</div>
    <div id="darkbannerwrap"></div>

    <form class="layui-form" action="javascript:;">
        <input class="layui-input" name="UserEmail" type="text" placeholder="用户名" value="" lay-verify="required">
        <hr class="hr15">
        <input class="layui-input" name="UserPwd" type="password" lay-verify="required" value="" placeholder="密码">
        <hr class="hr15">
        <input type="submit" value="登录" lay-submit lay-filter="formfilter" style="width:100%;">
        <hr class="hr20">
    </form>
</div>

<script src="static/js/jquery-3.3.1.min.js"></script>
<script src="static/Plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="static/Plugins/layui/layui.all.js"></script>
<script src="static/js/jquery-confirm.min.js"></script>
<script src="static/js/jquery-ext-admin.js"></script>
<script src="static/Plugins/zTree/js/jquery.ztree.all.min.js"></script>

<script src="static/js/xadmin.js"></script>
<script>
    $(function () {
        form.on('submit(formfilter)', function (data) {
            $.postdata('/clientApi/Login/Check',
                data.field,
                function (res) {
                    if (res) {
                        window.location.href = '/client';
                    }
                });
            return false;
        });
    })

</script>
</body>

</html>
